<template>
    <a-form-model :label-col="{ span: 4 }" :wrapper-col="{ span: 12 }">
        <a-form-model-item label="收货人姓名">
            <a-input v-model="info.refund_name"></a-input>
        </a-form-model-item>
        <a-form-model-item label="收货人联系电话">
            <a-input v-model="info.refund_phone"></a-input>
        </a-form-model-item>
        <a-form-model-item label="收货人地址">
            <a-input v-model="info.refund_address"></a-input>
        </a-form-model-item>
        <a-form-model-item :wrapper-col="{ span: 12, offset: 4 }">
            <a-button type="primary" @click="handleSubmit">提交</a-button>
        </a-form-model-item>
    </a-form-model>
</template>

<script>
export default {
    components: {},
    props: {},
    data() {
        return {
            info: {},
            loading: false
        };
    },
    watch: {},
    computed: {},
    methods: {
        handleSubmit() {
            this.info.edit_type = 'refund';
            this.$put(this.$api.sellerConfigs, this.info).then(res => {
                this.get_info();
                return this.$returnInfo(res);
            })
        },
        get_info() {
            this.$get(this.$api.sellerConfigs).then(res => {
                // console.log(res);
                this.info = res.data;
            })
        }
    },
    created() {
        this.get_info();
    },
    mounted() {
    }
};
</script>
<style lang="scss" scoped>

</style>
